#ifndef QMYSPINBOX_H
#define QMYSPINBOX_H

#include "../../lib/shared/qobjecthost.h"

#include <QSpinBox>
#include <QDoubleSpinBox>

class QSpinBoxHost: public QObjectHost
{
    Q_OBJECT
public:
    QSpinBoxHost(QWidget* wid);
public slots:
    int     value();
signals:
    void    setValue(int);
};


class QMySpinBox : public QSpinBox
{
    Q_OBJECT
public:
    QMySpinBox(QWidget* parent=0);
public slots:
    void    updateProperty(const QString & name);
    void    updatePropertyAttribute();
    void    valueChanged_signals(int value);
    void    initProperty();
signals:
    void    zValueChanged();
protected:
    QObjectHost   *m_host;
};

class QDoubleSpinBoxHost: public QObjectHost
{
    Q_OBJECT
public:
    QDoubleSpinBoxHost(QWidget* wid);
public slots:
    double     value();
signals:
    void    setValue(double);
};


class QMyDoubleSpinBox : public QDoubleSpinBox
{
    Q_OBJECT
public:
    QMyDoubleSpinBox(QWidget* parent=0);
public slots:
    void    updateProperty(const QString & name);
    void    updatePropertyAttribute();
    void    valueChanged_signals(double value);
    void    initProperty();
signals:
    void    zValueChanged();
protected:
    QObjectHost   *m_host;
};


#endif // QMYSPINBOX_H
